{extend name="base/main" }

{block name="body"}
<link rel="stylesheet" type="text/css" href="/assets/index/vplay.css">

<div class="dst_loc">
    <div class="dst_loc_1">当前位置：
        <a href="/" target="_self">直播首页</a> &gt;&gt; 网络电视 <span id="dline1"></span></div>
    <div class="dst_loc_2">
    <div class="tvso_1">
        <input id="myso" name="myso" type="text" value="搜索视频、新闻、电视台" onfocus="this.select()" onmouseover="this.focus()" onkeydown="responseme();" onblur="if(this.value=='')this.value=defaultValue" onclick="if(this.value==this.defaultValue)this.value = ''"></div>
        <div class="tvso_2"><input id="Button1" type="button" value="搜索" onclick="isou();"></div>
    </div>
</div>

<div class="dst_ct">

    <div class="dst_ct_l">
        <?php 
            $parents = db("tv" , [] , false)->field("tcate,ttype")->group("tcate,ttype")->select();
            foreach($parents as $p):
        ?>
        <div class="dst_ct_l1">
            <div class="dst_title">
                <span class="dst_title_1"><?php echo $p['ttype']; ?></span>
                <span class="dst_title_2"><a href="/pindao/list/<?php echo $p['tcate']; ?>">更多</a></span>
            </div>
            <ul class="dst_list">
                <?php
                    $subs = db("tv" , [] , false)->field("id,tname,tlogo")->where("tcate" , $p['tcate'])->limit(12)->select();
                    foreach($subs as $k => $s):
                ?>
                <li><p class="dst_tv"><a href="/pindao/info/<?php echo $s['id']; ?>">
                    <img src="<?php echo $s['tlogo']; ?>" alt="<?php echo $s['tname']; ?>"></a>
                    <a href="/pindao/info/<?php echo $s['id']; ?>"><?php echo $s['tname']; ?></a></p>
                    <p><a href="/pindao/info/<?php echo $s['id']; ?>">节目表</a></p>
                </li>
                <?php endforeach; ?>
            </ul>
        </div>
        <?php endforeach; ?>

    </div>


    <div class="dst_ct_r">
        <div class="dst_ct_r1">
            <div class="dst_title">热门频道</div>
                <ul class="dst_new">
                    <?php
                    $tvlist = db("tv" , [] , false)->field("id,tname")->limit(100)->select();
                    foreach($tvlist as $v):
                    ?>
                    <li><span></span><a href="/pindao/info/<?php echo $v['id']; ?>"><?php echo $v['tname']; ?></a></li>
                    <?php endforeach; ?>
                </ul>
            </div>

        </div>


</div>


{/block}